package com.spring.framework.aop.aspect;


import com.spring.framework.aop.turing.Calculate;

/**
 * Created by xsls on 2019/6/10.
 */
public class TulingCalculate implements Calculate {

	public int add(int numA, int numB) {

		System.out.println("执行目标方法:add");
		System.out.println(1 / 0);
		return numA + numB;
	}

	public int sub(int numA, int numB) {
		System.out.println("执行目标方法:reduce");
		return numA - numB;
	}

	public int div(int numA, int numB) {
		System.out.println("执行目标方法:div");
		return numA / numB;
	}

	public int multi(int numA, int numB) {
		System.out.println("执行目标方法:multi");

		return numA * numB;
	}

	public int mod(int numA, int numB) {
		System.out.println("执行目标方法:mod");

		return numB % numA;

	}

}
